package valida

import (
	"github.com/go-playground/validator/v10"
)

// customFunc 自定义字段级别校验方法
func CustomFunc(fl validator.FieldLevel) bool {
	filed := fl.Field().String()
	if filed == "admin"{
		return false
	}
	return true
}
